package com.biz.primus.ms.auth.dao.po;

import com.biz.primus.ms.base.jpa.po.BaseEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

/**
 * Created by younger on 17/11/17.
 */
@Entity
@Table(name = "auth_application_type")
@Data
public class ApplicationType extends BaseEntity {

    @Column(length = 64, nullable = false, name = "application_type", unique = true)
    @NotNull(message = "applicationType不能为空")
    @NotBlank(message = "applicationType不能为空")
    private String applicationType;

    @Column(length = 200, nullable = false, name = "application_type_url")
    private String applicationTypeUrl;

}
